package tunafish2k.rpgex.items;

import net.minecraft.entity.projectile.ProjectileEntity;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.ProjectileItem;
import net.minecraft.util.math.Direction;
import net.minecraft.util.math.Position;
import net.minecraft.world.World;
import tunafish2k.rpgex.entities.StoneDartProjectile;

public class StoneDartItem extends Item implements ProjectileItem {
    public StoneDartItem() {
        super(new Item.Settings().maxCount(DEFAULT_MAX_COUNT));
    }

    @Override
    public ProjectileEntity createEntity(World world, Position pos, ItemStack stack, Direction direction) {
        return new StoneDartProjectile(null, pos.getX(), pos.getY(), pos.getZ(), world, stack.copyWithCount(1), (ItemStack)null);
    }
}
